import request from '@/utils/request'

// 圈主查询接口
export function getcirclemaster(params) {
    // return request({
    //     url: `service/circle/selectCircleMaster`,
    //     method: "get",
    //     params
    // })
    return request({
        url: `/work/commercialManager/commissioner`,
        method: "get",
        params
    })
}
// 圈主消费订单对应接口
export function getConsumptionapilist(params) {
    // return request({
    //     url: `financial/order/userOrder`,
    //     method: "get",
    //     params
        
    // })
    return request({
        url: `financial/order/list`,
        method: "get",
        params
        
    })
   
}
//用户赋值新增接口
export function addUserassignment(data) {
    return request({
        url: `/financial/userAssign/add`,
        method: "post",
        data
    })
}
//用户赋值查詢接口
export function getUserassignment(params) {
    return request({
        url: `/financial/userAssign/list`,
        method: "get",
        params
    })
}
//用户充值记录查詢接口
export function getRechargelist(params) {
    return request({
        url: `financial/deposit/list`,
        method: "get",
        params
    })
}
//浏览发票记录查詢接口
export function getinvoicelist(params) {
    return request({
        url: `financial/invoice/list`,
        method: "get",
        params
    })
}
//发票记录查詢接口
export function getinvoiceidlist(params) {
    return request({
        url: `financial/invoice/getInfo`,
        method: "get",
        params
    })
}
//邮寄发票接口
export function editinvoiceidlist(data) {
    return request({
        url: `/financial/invoice/edit`,
        method: "put",
        data
    })
}

//浏览信息记录查詢接口
export function getBrowselist(params) {
    return request({
        url: `service/docHistory/list`,
        method: "get",
        params
    })
}
//商机分析圈员标签
export function selectCircleMasterlist(params) {
    return request({
        url: `/service/circle/selectUserByCircle`,
        method: "get",
        params
    })
}

//商机分析查詢接口
export function getBusinesslist(params) {
    return request({
        url: `work/opportunities/list`,
        method: "get",
        params
    })
}
//商机删除查詢接口
export function deleteBusinesslist(params) {
    return request({
        url: `work/opportunities/remove/${params}`,
        method: "delete",

    })
}
//编辑商机查詢接口
export function editBusinesslist(data) {
    return request({
        url: `work/opportunities/edit`,
        method: "put",
        data

    })
}
//编辑商机查詢接口
export function addBusinesslist(data) {
    return request({
        url: `work/opportunities/add`,
        method: "post",
        data

    })
}
//商机分析名字接口
export function getBusinessnamelist(params) {
    return request({
        url: `work/consultType/list`,
        method: "get",
        params
    })
}
//商机分析状态跟来源查詢接口
export function getBusinesslistobjck(params) {
    return request({
        url: `base/config/listOpportunities`,
        method: "get",
        params
    })
}

//圈员信息记录查詢接口
export function getinformationlist(params) {
    return request({
        url: `service/circle/selectUserByCircle`,
        method: "get",
        params
    })
}




